package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author zhangyi
 * @date 2018/11/22 11:15
 */
@Data
@TableName("bus_address_book")
public class AddressBookEntity {
    @TableId
    private Long id;
    private Long memberId;
    private String emailContact;
    private int isDelete;
    private Date createTime;

    public AddressBookEntity(Long memberId, String emailContact, Date createTime,Long projectId) {
        this.memberId = memberId;
        this.emailContact = emailContact;
        this.createTime = createTime;
        this.projectId = projectId;
    }

    public AddressBookEntity(Long id, int isDelete) {
        this.id = id;
        this.isDelete = isDelete;
    }

    private Long projectId;

    @TableField(exist = false)
    private Integer status;
}
